tools/firmware-utils: mktplinkfw regroup duplicate code
authorThibaut VARÈNE <[email protected]>
Tue, 3 Oct 2017 16:12:27 +0000 (18:12 +0200)
committerMathias Kresin <[email protected]>
Fri, 6 Oct 2017 06:28:41 +0000 (08:28 +0200)
commit9ed241083b90b6a9af656105a9a35cdb83aeb3f5
tree10eba5fc1954cb2b6a77bcf8894f51228fde4c3b
parent3714718616c4f448a317d9a5656bee9acbb5e5d7
tools/firmware-utils: mktplinkfw regroup duplicate code

This patch carves out the duplicated code of mktplinfw.c and
mktplinkfw2.c and moves it to mktplinkfw-lib.c

This change is a semantic NOP (the code is unchanged).

To ensure compatibility with gcc-5.x and newer without changing
the code, -fgnu89-inline is added to the build flags for these
two binaries.

Signed-off-by: Thibaut VARÈNE <[email protected]>
Makefile
src/mktplinkfw-lib.c [new file with mode: 0644]
src/mktplinkfw-lib.h [new file with mode: 0644]
src/mktplinkfw.c
src/mktplinkfw2.c